import React from 'react';
import Header from '../Home/components/Header'
import Search from '../Home/components/Search'
import Context from '../Home/components/context/Context'
// import Swiper from './components/context/swiper/Swiper'
// import axios from "../../axios/axios"
import Activity from '../Issue/Activity'

/**
 * 首页
 */
const Home = () => {
  // let [swiperData,setSwiperData] = useState([]);//轮播图的数据
  //   // https://www.linweiqin.cn/api/public/v1/home/swiperdata
  //   useEffect(()=>{
  //       axios.get("home/swiperdata").then(res=>{
  //           // console.log(res);
  //           setSwiperData(res.message);
  //       })
  //   },[]);

  return (
    <div>
      {/* <span>首页</span> */}
       <Header title="爱家租房"></Header>
       <Search></Search>
       <Context></Context>
       {/* <Swiper data={swiperData}></Swiper> */}
       <Activity></Activity>
    </div>
  );
}

export default Home;
